package domian;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class Comment {
    private Integer id;//主键
    private Integer uid;//发送评论用户的id
    private Integer fid;//在哪个文件下发送的评论
    private String headerimg;//发送评论用户的头像
    private String nickname;//发送评论用户的名字
    private String tel;//发送评论用户的电话
    private String content;//评论的内容
    private String time;//评论发送的时间
    private Integer starLevel;//给文件的评价，1~5星

    public Comment(Integer uid, Integer fid, String content, String time, Integer starLevel) {
        this.uid = uid;
        this.fid = fid;
        this.content = content;
        this.time = time;
        this.starLevel = starLevel;
    }

    public Comment(Integer id, Integer uid, Integer fid, String content, String time, Integer starLevel) {
        this.id = id;
        this.uid = uid;
        this.fid = fid;
        this.content = content;
        this.time = time;
        this.starLevel = starLevel;
    }
}
